package com.ruoyi.teaching.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.teaching.api.factory.RemoteDailyTaskFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * 文件服务
 *
 * @author ruoyi
 */
@FeignClient(contextId = "remoteDailyTaskService", value = ServiceNameConstants.TEACHING_SERVICE, fallbackFactory = RemoteDailyTaskFallbackFactory.class)
public interface RemoteDailyTaskService
{
    @PostMapping(value = "/daily_tasks/create")
    public R<Void> create();

    @PutMapping(value = "/daily_tasks/auto_check")
    public R<Void> autoCheck();

    /*    *//**
     * 上传文件
     *
     * @param file 文件信息
     * @return 结果
     *//*
    @PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public R<SysFile> upload(@RequestPart(value = "file") MultipartFile file);*/
}
